<?php

namespace App\Exceptions\Exceptions;

use Throwable;

/**
 * Class ValidationException
 * @package App\Exceptions\Exceptions
 */
class ValidationException extends \Exception
{

    /**
     * ValidationException constructor.
     * @param array $message
     * @param int $code
     * @param Throwable|null $previous
     */
    public function __construct(array $message = [], $code = 0, Throwable $previous = null)
    {
        parent::__construct(implode("\n", $message), $code, $previous);
    }

}